<div class="layui-table-modular" style="min-height: 700px">
    <table class="layui-hide" id="remindTable" lay-filter="remindTable" lay-skin="line"></table>
</div>
<!-- 操作 -->
<script type="text/html" id="operationTemp">
    <div class="layui-dropdown dropdown-right" lay-filter='operation'>
        <button class="layui-btn layui-btn-xs layui-btn-primary layui-dropdown-toggle"><i class="fa fa-align-justify"></i></button>
        <div class="layui-dropdown-content">
            <div class="layui-dropdown-menu">
                <li><a href="javascript:;">关注</a></li>
                <li><a href="javascript:;" lay-event="edit">编辑简历</a></li>
                <li><a href="javascript:;">修改简历正文</a></li>
                <li><a href="javascript:;">提醒</a></li>
                <li><a href="javascript:;">Floating CV</a></li>
                <hr>
                <li><a href="javascript:;">加入订单</a></li>
                <li><a href="javascript:;">加入收藏</a></li>
            </div>
        </div>
    </div>
</script>
<script>
    layui.use(['form','table', 'element', 'utils'], function () {
        var $ = layui.jquery,
            layer = layui.layer,
            table = layui.table,
            form = layui.form,
            utils = layui.utils;

        // 数据快速查看
        var remindTableIns = table.render({
            elem: '#remindTable',
            url: 'api/candidateTable.json',
            method: 'post',
            page: true,
            contentType: 'application/json',
            headers: {"token": sessionStorage.getItem("token")},
            request: {
                pageName: 'pageIndex',
                limitName: 'pageSize'
            },
            response: {
                statusCode: 200
            },
            parseData: function(res){
                return {
                    "code": res.code,
                    "msg": res.message,
                    "count": res.data.total,
                    "data": res.data.records
                };
            },
            skin: 'line',
            cols: [
                [
                    {type: 'taskType', align: 'center', title: '任务类型'},
                    {field: 'taskObj', align: 'center', title: '任务对象'},
                    {field: 'taskRemaks', align: 'center', title: '任务备注'},
                    {field: 'taskTime', align: 'center', title: '任务时间'},
                    {field: 'participant', align: 'center', title: '参与者'},
                    {field: 'creator', align: 'center', title: '创建者'},
                    {title: '操作', align: "center", width: 60, templet: '#operationTemp'}
                ]
            ],
            done: function(res, curr, count){
                // 操作
                $('[lay-filter="operation"]').each(function () {
                    var $this = $(this);
                    utils.dropdown({
                        el: $this,
                        zIndex: 10000,
                        trigger: 'click'
                    });
                });
            }
        });
    });
</script>
